<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<body>
<h:form>
	<p:dialog id="alterarSenha" widgetVar="alterarSenha" header="Alterar Senha:" modal="true" height="180" width="420"  >
		<div class="msgAlterar">
			<h:messages id="msgAlterar" showDetail="true" showSummary="false" />
		</div> 
		<p:panel>
			<h:panelGrid columns="2">
				<h:outputLabel value="Usuário: " style="margin-left:30px;"></h:outputLabel>
				<p:inputText styleClass="label_10" value="#{loginMB.loginBean.usuario}" required="true" requiredMessage="Campo Nome é obrigatório"></p:inputText>
			</h:panelGrid>
			
			<h:panelGrid columns="2">
				<h:outputLabel value="#{msg.label_senha} " style="margin-left:27px;"></h:outputLabel>
				<p:password style="margin-left:7px;" value="#{loginMB.loginBean.senha}" required="true" requiredMessage="Campo Senha é obrigatório"></p:password>
			</h:panelGrid>
			
			<h:panelGrid columns="2">
				<h:outputLabel value="#{msg.label_novaSenha} "></h:outputLabel>
				<p:password style="margin-left:7px;" styleClass="label_10" value="#{loginMB.loginBean.novaSenha}" required="true" requiredMessage="Campo nova Senha é obrigatório"></p:password>
			</h:panelGrid>
			
			<h:panelGrid columns="2">
				<h:outputLabel value="#{msg.label_confSenha} "></h:outputLabel>
				<p:password style="margin-left:3px;" value="#{loginMB.loginBean.confirmarSenha}" required="true" requiredMessage="Campo Confirmação é obrigatório"></p:password>
			</h:panelGrid>
		
		<p:commandButton value="Alterar" action="#{loginMB.alterarLogin}" update="msgAlterar" style="float: right; margin-top:15px;"></p:commandButton>
		<br></br><br></br><br></br>
		</p:panel>
	
	</p:dialog>
</h:form>
</body>
</html>

